cmake_minimum_required(VERSION 3.5.1)
project(LinStack)
set(STACK_SRC linstack.c)
include_directories(${PUBLIC_DEMO})

add_library(LLinStack STATIC ${STACK_SRC})
set_target_properties(LLinStack PROPERTIES OUTPUT_NAME llinstack)

add_library(llinstack SHARED ${STACK_SRC})

if(LINUX)
    install(TARGETS LLinStack ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
    install(TARGETS llinstack LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
    install(FILES ${INCLUDE_DIR}/Stack/linstack.h DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
